<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class Banner extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create("banners", function (Blueprint $table){
            $table->increments("id")->comment("导航ID");
            $table->string("location")->comment("位置");
            $table->timestamps();
        });

        Schema::create("banners_thumbs", function (Blueprint  $table){
            $table->increments("id");
            $table->integer("banners_id")->comment("banner信息");
            $table->string("thumbs")->comment("图片信息");
            $table->string("links")->comment("链接地址");
            $table->tinyInteger("status")->comment("状态");
            $table->softDeletes()->comment("是否删除");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
